package com.onstar.cn.framework.annotation.http;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.onstar.cn.framework.network.enumtype.HttpAccept;
import com.onstar.cn.framework.network.enumtype.Language;

/**
 * Http request heads
 * 
 * @author 7828wc
 * 
 */
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface HeadsValue {
	/**
	 * Either application/json or application/xml
	 * 
	 * @return
	 */
	HttpAccept accept() default HttpAccept.JSON;

	/**
	 * Language code used to process the request.
	 * 
	 * @return
	 */
	Language language() default Language.EN;

	/**
	 * Access token using the Bearer token convention.
	 * 
	 * @return
	 */
	String authorization() default "";

}
